/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.integral.web.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import io.swagger.annotations.ApiModel;
import lombok.Getter;

/**
 * @Description: 获得积分类型状态枚举
 * @Author: xiaoq
 * @Date : 2019/12/4 18:31
 */
@Getter
@ApiModel("获得积分类型状态枚举")
public enum IntegralGainTypeEnum {

	/**
	 * 获取积分类型有增有减 具体在单个业务逻辑中判断
	 */
	EXCHANGE_INTEGRAL_GOODS(1, "兑换积分商品"),

	BUY_GOODS(2, "购买商品"),

	USE_BUY_GOODS(3, "积分抵扣"),

	DAY_LOGIN(4, "每日首次登入"),

	DAY_SHARE(5, "每日首次分享"),

	SIGN_IN(6, "签到"),

	DAY_STEP_NUMBER_REACH(7, "每日步数达标"),

	MERCHANT_RECHARGE(8, "商家充值"),

	MERCHANT_DEDUCT(9, "商家扣除"),

	EMPTY(10, "积分清零"),

	GIVE_BACK(11, "归还积分"),

	CONVERSION_CLUB_CARD(12, "兑换会员卡")
	;

	/**
	 * 值
	 */

	@EnumValue
	private final int status;

	/**
	 * 描述
	 */
	private final String desc;

	IntegralGainTypeEnum(int status, String desc) {
		this.status = status;
		this.desc = desc;
	}
}
